﻿using System.ComponentModel.DataAnnotations;

namespace MetroManagement
{
    /// <summary>
    /// 创建乘车卡数据传输对象
    /// </summary>
    public class CreateCardDto
    {
        [Display(Name = "用户名")]
        [Required(ErrorMessage = "{0} 不能为空")]
        public string UserName { get; set; }

        [Display(Name = "身份证号")]
        [Required(ErrorMessage = "{0} 不能为空")]
        public string IdCard { get; set; }

        [Display(Name = "联系电话")]
        [Required(ErrorMessage = "{0} 不能为空")]
        public string Phonenumber { get; set; }
    }
}